<?php

namespace app\model\not_del;

use think\Model;
use think\model\relation\BelongsTo;

/**
 * 因子等级管理表
 */
class RatingScaleFactorWarningModel extends Model
{
    protected $name = 'rating_scale_factor_warning';

    /**
     * 关联因子表
     * @return BelongsTo
     */
    public function factorName(): BelongsTo
    {
        return $this->belongsTo(RatingScaleFactorModel::class,'factor_id')->bind(['factor_name'=>'name']);
    }
}